package com.java.star.mall.front.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 微信用户登录参数实体
 */
@Data
public class WxLoginParam implements Serializable {

    private static final long serialVersionUID = 4451330127108125672L;

    @ApiModelProperty(value = "微信授权code", required = true)
    @NotEmpty(message = "微信授权code不能为空")
    private String code;

    @ApiModelProperty(value = "用户昵称", required = true)
    @NotEmpty(message = "用户昵称不能为空")
    private String nickName;

    @ApiModelProperty(value = "头像地址", required = true)
    @NotEmpty(message = "头像地址不能为空")
    private String avatarUrl;

}
